/**
 * Created by TianYi on 2018/2/1.
 */

console.log('before setTimeout()');
setTimeout(function callback() {
    console.log('Done');
}, 1000); // 1秒钟后调用callback函数
console.log('after setTimeout()');